#ifndef QQ_CLIENT_CONTROLLER
#define QQ_CLIENT_CONTROLLER

#include <qobject.h>

#include "core/QQConfig.h"
#include "core/QQSettings.h"

#include "network/QQNetWork.h"

#include "storage/QQSql.h"

#include "main/QQClientView.h"

#include "chat/QQChatController.h"

#include "friend/QQFriendPage.h"

class QQClientController : public QObject
{
	Q_OBJECT
public:
	QQClientController(QWidget* parent = nullptr);
	~QQClientController();
	void doReadyRead(const QJsonObject& data);
signals:
	void forceOutLine();
public slots:
	void showView();
	void closeView();
	void doMousePress(const QPoint& pos, Qt::MouseButton button);
private slots:
	void doForceOutLine();
private:
	QQClientView* mClientView;
	QQChatController* mChatController;
};

#endif // !QQ_CLIENT_CONTROLLER